/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.googlecode.midpdeviceprofiler;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.StringItem;

/**
 *
 * @author helio.rodrigues
 */
public class RamMemoryView extends Form {

    private Command backCommand = new Command("Back", Command.BACK, 0);

    /**
     *
     */
    public RamMemoryView() {
        super("RAM Memory");

        StringItem item = new StringItem("Total RAM:",
                (Runtime.getRuntime().totalMemory() / 1024) + " KB");

        append(item);
        addCommand(backCommand);
        setCommandListener(DeviceProfilerMidlet.getInstance());
    }

    /**
     * @return the backCommand
     */
    public Command getBackCommand() {
        return backCommand;
    }
}
